package hiclib.hicdata;

public class CUser {
	public String usrcode = null;
	public String usrname = null;
	public String comcode = null;
	public String comname = null;	
	private String[] Workid = null;

	public void setWorkid(String workid) {
		if(workid == null) return;
		if(workid.isEmpty()) return;
		String[] arr= workid.split(",");
		this.Workid = arr;
		return;
	}
	public String[] getWorkid() {
		return this.Workid;
	}
	
	public boolean WorkRecongnition(String workid) {
		int i = 0;
		if (this.Workid == null) return false;
		for (i = 0; i < workid.length(); i++) {
			if (this.Workid[i].equals(workid)) 
				return true;
		}
		return false;
	}
}
